package com.axonactive.yolo.dao.interfaces;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.axonactive.yolo.domain.UserEmail;

public interface UserEmailRepository extends JpaRepository<UserEmail, Integer> {

	public List<UserEmail> findByIdUser(int userId);

	public UserEmail findByEmail(String email);

	@Query("FROM UserEmail U WHERE U.active = 0")
	public List<UserEmail> findByActive();	
}
